package array;

public class arrayM
{
	public static void main(String[] args)
	{
		System.out.println("==宋高宗---赵构==");
		ChaoDai ming = new ChaoDai("明朝", 1368);
		System.out.println("==toString:==" + ming);
		ming.setCapital("北京");
		System.out.println("==toString:==" + ming.getCapital());
		short guoZhuo = 167;
		ChaoDai beiSong = new ChaoDai("北宋", 960, guoZhuo, "开封");
		System.out.println("==toString:==" + beiSong);
		short nianling = 22;
		King Your = new King("乔丹1", true, nianling, 88, 180);
		Your.setName("科比");
		System.out.println(Your);
		System.out.println(Your.getName());
//		short nianling = 22;
//		King You = new King("党耀华", true, nianling, 88, 180);
//		System.out.println(Your);
		ChaoDai num1 = new ChaoDai();
		num1.add(Your);
//		System.out.println(num1.huang[0]);
		King Your1 = new King("乔丹2", true, nianling, 88, 180);
		num1.add(Your1);
		King Your2 = new King("乔丹3", true, nianling, 88, 180);
		num1.add(Your2);
		King Your3 = new King("乔丹4", true, nianling, 88, 180);
		num1.add(Your3);
		King Your4 = new King("乔丹5", true, nianling, 88, 180);
		num1.add(Your4);
		King Your5 = new King("乔丹6", true, nianling, 88, 180);
		num1.add(Your5);
		num1.select();

	}
}